#ifndef _MESSAGE_HADLING_H
#define _MESSAGE_HADLING_H

#include <set>


class Folder;

class Message{
	std::set<Folder *> folderPtr;
	std::string content;
public:
	Message(std::string message);
	Message(const Message& message);
	~Message();

	void save(Folder *folder);
	void remove(Folder *folder);
	Message& operator=(const Message&);
/*private:	
	void put_msg_in_folders()
	*/
};

class Folder{
	std::set<Message *> messagePtr;
	std::string name;
public:
	Folder(std::string name);
	~Folder();

	friend Message::Message(const Message&);
	friend void Message::save(Folder*);
	friend void Message::remove(Folder*);
	friend Message& Message::operator=(const Message&);
};



#endif // _MESSAGE_HADLING_H